import { useStore } from 'vuex'
//购物车相关逻辑
export const useCommonCartEffect = ()=>{
    const store = useStore()
    const chageCartItemInfo = (shopId, productId, productInfo, num)=>{
        store.commit('chageCartItemInfo', {
            shopId, productId, productInfo, num
        })
    }
    return { chageCartItemInfo }
}

